package com.sam4cloud.common.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @Author: Sam
 * @Date: 2022-12-08 14:59
 * @Description: 删除状态枚举类 映射db
 */
public enum DelFlagEnum {
    NORMAL("0", "正常"),
    DELETE("1", "删除"),
    ;

    DelFlagEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @EnumValue //标记数据库值code
    @JsonValue //标记响应json值
    private String code;
    //@JsonValue //标记响应json值
    private String desc;

}
